﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bike.Repository.Models;

namespace Bike.Repository
{
   public class CustomerRepository : Repository<Customer>
    {
        public CustomerRepository(IObjectContext context) : base(context) { }
        public IEnumerable<Customer> GetCustomer(CustomerTypes type)
        {
            string str = type.ToString();
            return AsQueryable().Where(p => p.Type == str).AsEnumerable();
        }
    }
}
